package io.itit.ecp.admin.provide.action.resp.largescreen;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


@Data
@Accessors(chain = true)
public class PhotoVoltaicPowerDeviceDataResp implements Serializable {

    @ApiModelProperty("消耗率")
    private BigDecimal consumptionRate;

    @ApiModelProperty("数据")
    private List<DataItem> data;

    @Data
    @Accessors(chain = true)
    public static class DataItem implements Serializable {

        @ApiModelProperty("名称")
        private String name;

        @ApiModelProperty("单位")
        private String unit;

        @ApiModelProperty("数据列表")
        private List<DataItemDetail> data;
    }

    @Data
    @Accessors(chain = true)
    public static class DataItemDetail implements Serializable {

        @ApiModelProperty("值")
        private BigDecimal value;

        @ApiModelProperty("时间")
        private String time;

    }

}
